package com.basic.modules.nykf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.poi.hpsf.Decimal;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("n_ykf_renew_details")
public class RenewDetailsEntity {

    @TableId
    private Long renewDetailsId;

    // 批次ID
    private String renewBatchId;

    // 业务ID
    private Long customerShopBusinessId;

    // 业务开始时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")  // 指定时区
    private Date ywkssj;

    // 业务结束时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")  // 指定时区
    private Date ywjssj;

    // 日均咨询量
    private Integer rjzxl;

    // 多店铺费用
    private BigDecimal dtdfy;

    // 加班费
    private BigDecimal jbf;

    // 提成
    private BigDecimal tc;

    // 绩效
    private BigDecimal jx;

    // 其它
    private BigDecimal qt;

    // 赔偿
    private BigDecimal peic;

    // 其它扣款
    private BigDecimal qtkk;

    @TableField(exist = false)
    private CustomerShopBusinessEntity customerShopBusiness;

    @TableField(exist = false)
    private Integer dailyConsultAvg;

    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}